#ifndef SETTINGSDIALOG_H
#define SETTINGSDIALOG_H

#include <QDialog>
#include <QString>

class QLabel;
class QCheckBox;
class QPushButton;
class QLineEdit;
class SettingsDialog : public QDialog
{
    Q_OBJECT
public:
    explicit SettingsDialog(QWidget *parent = 0);
    QString GetPlayerEmail();
    QString GetPasssword();
    QString GetPOP3Server();
    QString GetSMTPServer();
    QString GetOwnerEmail();
private:
    void createWidgets();
    void createLayout();
    void createConnections();

    QLabel *playerEmailLabel;
    QLabel *passwordLabel;
    QLabel *ownerEmailLabel;
    QLabel *pop3ServerLabel;
    QLabel *smtpServerLabel;

    QLineEdit *playerEmailEdit;
    QLineEdit *passwordEdit;
    QLineEdit *pop3ServerEdit;
    QLineEdit *smtpServerEdit;
    QLineEdit *ownerEmailEdit;

    QPushButton *okButton;
    QPushButton *cancelButton;

    QString playerEmail;
    QString password;
    QString pop3Server;
    QString smtpServer;
    QString ownerEmail;
private slots:
    virtual void accept();
};

#endif // SETTINGSDIALOG_H
